package com.github.edu.weixin.admin.service.impl;
import com.github.edu.weixin.admin.domain.WeixinApplicationDomain;
import com.github.edu.weixin.admin.entity.TSysWeixinApplication;
import com.github.edu.weixin.admin.service.ApplicationManagerService;
import com.github.admin.edu.assembly.string.util.StringUtils;
import com.github.admin.edu.orm.serivce.impl.DataRestfulAbstractBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-7-23
 */
@Service
public class ApplicationManagerServiceRestServer extends
        DataRestfulAbstractBaseService<TSysWeixinApplication,String> implements ApplicationManagerService {

    @Autowired
    private WeixinApplicationDomain domain;

    public String delete(String ids) {
        return super.delete(ids,"String");

    }

    @Override
    public String getAllGetEntity(String title, Integer current, Integer rows, String order, String fileId) {
        TSysWeixinApplication weixinApplication=new TSysWeixinApplication();
        if(StringUtils.isNotBlank(title)){
            weixinApplication.setName(title);
        }
        return super.getAllGetEntity(weixinApplication,current,rows,order,fileId);
    }
    @Override
    public String getAllEntity(String title, String order, String fileId) {
        return getAllGetEntity(title,0,0,order,fileId);
    }

    @Override
    public String saveOrUpdate(String jsonEntity) {
        return null;
    }
}
